package cn.ad.exception;

public class CampaignValidateException extends ValidateException{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static enum ErrorCode implements BaseErrorCode{
		CAMPAIGN_NOTFOUND(20301,"Service.err.campaign.not.found"),
		CAMPAIGN_CHANGE_FAIL(20302,"Service.err.campaign.change.fail"),
		CAMPAIGN_REPEAT(20303,"Service.err.campaign.name.repeat"),
		CAMPAIGN_RUNNING_NOTES(20304,"Service.err.campaign.running.notes"),
		CAMPAIGN_STARTDATE_WARNNING(20305,"Service.err.campaign.startdate.warning"),
		CAMPAIGN_ENDDATE_WARNNING(20306,"Service.err.campaign.enddate.warning"),
		CAMPAIGN_CONFIRM(30001,"Campaign save confirm");
		
		private int value;
		
		private String desc;

		private ErrorCode(int value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		public int getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}
	}
	
	public CampaignValidateException(BaseErrorCode code) {
		super(code);
	}
	
	public CampaignValidateException() {
		super();
	}

	public CampaignValidateException(String message, Throwable cause, boolean enableSuppression,
                                     boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public CampaignValidateException(String message, Throwable cause) {
		super(message, cause);
	}

	public CampaignValidateException(String message) {
		super(message);
	}

	public CampaignValidateException(Throwable cause) {
		super(cause);
	}
	
	
}
